<template>
  <el-select v-bind="$attrs" clearable filterable placeholder="请选择机构" v-on="$listeners">
    <el-option v-for="item in orgSets" :key="item.id" :label="item.orgName" :value="item.orgCode"/>
  </el-select>
</template>

<script>
import { getOrgSetsByUserCpyCode } from '@/api/system/orgSet'

export default {
  components: { },
  props: {
  },
  data() {
    return {
      orgSets: []
    }
  },
  created() {
  },
  mounted() {
    getOrgSetsByUserCpyCode().then(res => {
      this.orgSets = res.data
    })
  },
  methods: {
  }
}
</script>
